<?php
namespace app\common\validate;

use \think\Validate;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/27
 * Time: 17:29
 */
class Article extends Validate
{
    protected $rule = [
    'title'                      => 'require',  //必填
    'cat_id'                    => 'require',
    'content'                   => 'require',

];

    protected $message = [
        'title.require'                => '请填写文章标题',
        'cat_id.require'                 => '请选择文章类别',
        'content.require'                  => '请填写文章内容',
    ];



}